﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="selectGuestwc.aspx.cs" Inherits="Services_ServiceGuest" %>
<%@ Register Src="../usercontrol/PageUrlGridView.ascx" TagName="PageUrlGridView" TagPrefix="uc1" %>
<html>
<head id="Head1" runat="server">
<title>销售明细</title>
<base target="_self"></base>
<link href="../css/adminCss.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/changerows.js"></script>
<script type="text/javascript" src="../js/rl.js"></script>
<link href="../js/loading.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function selectInfo(name)
{
    window.returnValue =name;
    window.close();
}
</script>
</head>
<script type="text/javascript" src="../js/loading.js" charset="gb2312"></script>
<body>
    <form id="form1" runat="server">
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="2%" height="22"><img src="../images/module.gif" width="20" height="22"/></td>
                <td align="left" ><asp:Label ID="lblPath" runat="server"></asp:Label></td>
                <td  height="22" width="10%" align="right"><a href="javascript:location.href=document.referrer;" ><img src="../images/history.gif" border="0" /></a></td>
              
            </tr>
        </table>
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td bgcolor="#3CB6E5" height="5px"></td>
          </tr>
        </table>
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td height="22" align="right"><img src="../images/search.gif" alt="搜索" width="16" height="16" />
                客户名称：<asp:TextBox ID="GuestName" runat="server" CssClass="input1" Width="60"></asp:TextBox>
                    维修人：<asp:TextBox ID="StaffName" runat="server" CssClass="input1" Width="60"></asp:TextBox>&nbsp;
                电话：<asp:TextBox ID="Guesttel" runat="server" CssClass="input1" Width="60"></asp:TextBox>
            <asp:Button ID="btnSearch" runat="server" Text="搜 索" CssClass="submit" OnClick="btnSearch_Click" /></td>
          </tr>
        </table>
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td bgcolor="#3CB6E5" height="5px">
                </td>
            </tr>
        </table>
        <asp:GridView ID="GvData" runat="server" Width="99%" AutoGenerateColumns="False" CssClass="gridview" EmptyDataText="没有数据" OnRowDataBound="GvData_RowDataBound">
             <RowStyle Height="25px" />
            <PagerSettings Visible="False" />
            <Columns>
                <asp:BoundField HeaderText="Id" DataField="Maintaddid"/>
                <asp:BoundField HeaderText="名称" DataField="GuestName"/>
                <asp:BoundField HeaderText="联系电话" DataField="Guesttel"/>
                <asp:BoundField HeaderText="客户地址" DataField="Guestaddress"/>
                <asp:BoundField HeaderText="类型" DataField="comitype"/>
                <asp:BoundField HeaderText="品牌" DataField="comidband"/>
                <asp:BoundField HeaderText="型号" DataField="comidSpe"/>
                <asp:TemplateField HeaderText="报修日期">
                    <ItemTemplate><asp:Label ID="lblMaintDate" Text='<%# Bind("MaintDate","{0:d}") %>'  runat="server"/></ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="预约时间">
                    <ItemTemplate><asp:Label ID="lblBespeakDate" Text='<%# Bind("BespeakDate","{0:d}") %>'  runat="server"/></ItemTemplate>
                </asp:TemplateField>
                 <asp:BoundField HeaderText="维修人" DataField="StaffName"/>
                <asp:BoundField HeaderText="报修故障"　DataField="MaintTrouble"/>
            </Columns>
            <RowStyle HorizontalAlign="Center" />
            <EmptyDataRowStyle ForeColor="Red" HorizontalAlign="Center" />
        </asp:GridView>
        <table align="center" width="99%">
        <tr >
        <td><uc1:PageUrlGridView ID="PageNavigator1" runat="server" DataId="GvData" ConnectionString="connstr" ShowType="Num" PageSize="20" /></td>
        <td align="right" style="color:#ff0000">双击选择</td>
        </tr>
        </table>
        <asp:HiddenField ID="hfxs" runat="server" />
        <asp:HiddenField ID="HidWareid" runat="server" />
    </form>
</body>
</html>
<script language="javascript"><!--
//senfe("表格名称","奇数行背景","偶数行背景","鼠标经过背景","点击后背景");
 senfe("GvData","#ECF9FC","#FFFFFF","#D6F1F8");
--></script>